<h4 class="widgettitle nomargin shadowed">Ubah Login User</h4>
<div class="widgetcontent bordered shadowed nopadding">
	<form class="stdform stdform2" method="POST" action="<?php echo base_url('admin/adm_login_siswa/simpan_data/ubah') ?>">
		<input type="hidden" name="id" value="<?php echo $id ?>" />
			<p>
				<label for="id_siswa">Nama Siswa</label>
				<span class="field">
					<select id="id_siswa" name="id_siswa" class="uniformselect">
						<?php
						foreach ($r_guru->result() as $v_guru)
						{
							if($v_guru->id == $id_siswa)
							echo '<option value="'.$v_guru->id.'" selected>'.$v_guru->nama_siswa.'</option>';
							else
							echo '<option value="'.$v_guru->id.'" >'.$v_guru->nama_siswa.'</option>';
						}
						?>
					</select>
				</span>
			</p>
			<p>
				<label for="username">Username</label>
				<span class="field">
					<input id="username" type="text" name="username" required maxlength="20" class="input-medium" value="<?php echo $username ?>" />
				</span>
			</p>
			<p>
				<label for="password">Password</label>
				<span class="field">
					<input id="password" type="password" name="password" required maxlength="50" class="input-large" value="<?php echo $password ?>" />
				</span>
			</p>
			
			<p class="stdformbutton">
				<button class="btn btn-primary">Ubah Data Login User</button>
				<button type="reset" class="btn">Reset</button>
			</p>
		</table>
	</form>
</div>